package com.huawei.java.main.classes;

public class Purchase {
    private final String type;

    public Purchase(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    @Override
    public String toString() {
        return String.format("(%s, 1)", this.type);
    }
}
